package com.joplus.housekeeper.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.io.Serializable;
import java.util.List;

/**
 * Created by tangdehao on 16/5/18.
 * <p>
 * author Administrator
 * time 2016/6/23 10:58
 * 添加注释 ：礼券
 */
public class GiftListBean implements Serializable {


    /**
     * message : 操作成功
     * couponEntities : [{"isUsed":null,"isExchange":null,"accountId":"acc1462264840490N93g","couponName":"不等位体验劵","couponNo":"budengwei","count":null,"createdTime":null,"usedDate":null,"couponMoney":100,"isSent":"10015","couponCode":"cgvwak6s","isDele":null,"couponId":"coup1458009026989Uv7J","conditionMoney":100,"id":172,"couponCategory":"10101","isFailed":"10016","expirDate":"1986年01月26日 00时00分","couponStatus":"10012","exchangeTime":null,"userLimit":"10201"}]
     * code : 200
     */

    private String message;
    private String code;

    private DataBean data;


    /**
     * isUsed : null
     * isExchange : null
     * accountId : acc1462264840490N93g
     * couponName : 不等位体验劵
     * couponNo : budengwei
     * count : null
     * createdTime : null
     * usedDate : null
     * couponMoney : 100
     * isSent : 10015
     * couponCode : cgvwak6s
     * isDele : null
     * couponId : coup1458009026989Uv7J
     * conditionMoney : 100
     * id : 172
     * couponCategory : 10101
     * isFailed : 10016
     * expirDate : 1986年01月26日 00时00分
     * couponStatus : 10012
     * exchangeTime : null
     * userLimit : 10201
     */


    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public static class DataBean implements Serializable {
        private int couponCount;

        public List<CouponEntitiesBean> getCouponEntities() {
            return couponEntities;
        }

        private List<CouponEntitiesBean> couponEntities;

        public void setCouponEntities(List<CouponEntitiesBean> couponEntities) {
            this.couponEntities = couponEntities;
        }

        public int getCouponCount() {
            return couponCount;
        }

        public void setCouponCount(int couponCount) {
            this.couponCount = couponCount;
        }

        public static class CouponEntitiesBean implements Serializable, Parcelable {

            /**
             * id : 553
             * couponId : coup1459134896667f8sN
             * couponNo : 781
             * couponCode : cx5ghfvd
             * couponName : 不等位体验券
             * expirDate : 2015年04月15日 05时03分
             * tagOne : null
             * tagTwo : null
             * limitCount : 10201
             * serId : null
             * provider : null
             * serName : null
             * couponMoney : 100
             * couponStatus : 10012
             * isSent : 10014
             * isFailed : 10016
             * conditionMoney : 100
             * couponCategory : 10101
             * userLimit : null
             * accountId : acc1466597182973UsKq
             * createdTime : null
             * isDele : null
             * usedDate : null
             * count : null
             * exchangeTime : null
             * isExchange : null
             * isUsed : null
             */


            private int id;
            private String couponId;
            private String couponNo;
            private String couponCode;
            private String couponName;
            private String expirDate;
            private String tagOne;
            private String tagTwo;
            private int limitCount;
            private String serId;
            private String provider;
            private String serName;
            private int couponMoney;
            private String couponStatus;
            private String isSent;
            private String isFailed;
            private int conditionMoney;
            private String couponCategory;
            private String userLimit;
            private String accountId;
            private String createdTime;
            private String isDele;
            private String usedDate;
            private String count;
            private String exchangeTime;
            private String isExchange;
            private String isUsed;
            private String area;
            private String value;
            private String availableDays;
            private String businessId;
            private String businessCategory;
            private String businessDetailUrl;

            public String getBusinessDetailUrl() {
                return businessDetailUrl;
            }

            public void setBusinessDetailUrl(String businessDetailUrl) {
                this.businessDetailUrl = businessDetailUrl;
            }

            public String getBusinessId() {
                return businessId;
            }

            public void setBusinessId(String businessId) {
                this.businessId = businessId;
            }

            public String getBusinessCategory() {
                return businessCategory;
            }

            public void setBusinessCategory(String businessCategory) {
                this.businessCategory = businessCategory;
            }

            public String getAvailableDays() {
                return availableDays;
            }

            public void setAvailableDays(String availableDays) {
                this.availableDays = availableDays;
            }

            public String getValue() {
                return value;
            }

            public void setValue(String value) {
                this.value = value;
            }

            public String getArea() {
                return area;
            }

            public void setArea(String area) {
                this.area = area;
            }

            private GiftClickType.type clicktype = GiftClickType.type.normal;

            public GiftClickType.type getClicktype() {
                return clicktype;
            }

            public void setClicktype(GiftClickType.type clicktype) {
                this.clicktype = clicktype;
            }


            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public String getCouponId() {
                return couponId;
            }

            public void setCouponId(String couponId) {
                this.couponId = couponId;
            }

            public String getCouponNo() {
                return couponNo;
            }

            public void setCouponNo(String couponNo) {
                this.couponNo = couponNo;
            }

            public String getCouponCode() {
                return couponCode;
            }

            public void setCouponCode(String couponCode) {
                this.couponCode = couponCode;
            }

            public String getCouponName() {
                return couponName;
            }

            public void setCouponName(String couponName) {
                this.couponName = couponName;
            }

            public String getExpirDate() {
                return expirDate;
            }

            public void setExpirDate(String expirDate) {
                this.expirDate = expirDate;
            }

            public String getTagOne() {
                return tagOne;
            }

            public void setTagOne(String tagOne) {
                this.tagOne = tagOne;
            }

            public String getTagTwo() {
                return tagTwo;
            }

            public void setTagTwo(String tagTwo) {
                this.tagTwo = tagTwo;
            }

            public int getLimitCount() {
                return limitCount;
            }

            public void setLimitCount(int limitCount) {
                this.limitCount = limitCount;
            }

            public String getSerId() {
                return serId;
            }

            public void setSerId(String serId) {
                this.serId = serId;
            }

            public String getProvider() {
                return provider;
            }

            public void setProvider(String provider) {
                this.provider = provider;
            }

            public String getSerName() {
                return serName;
            }

            public void setSerName(String serName) {
                this.serName = serName;
            }

            public int getCouponMoney() {
                return couponMoney;
            }

            public void setCouponMoney(int couponMoney) {
                this.couponMoney = couponMoney;
            }

            public String getCouponStatus() {
                return couponStatus;
            }

            public void setCouponStatus(String couponStatus) {
                this.couponStatus = couponStatus;
            }

            public String getIsSent() {
                return isSent;
            }

            public void setIsSent(String isSent) {
                this.isSent = isSent;
            }

            public String getIsFailed() {
                return isFailed;
            }

            public void setIsFailed(String isFailed) {
                this.isFailed = isFailed;
            }

            public int getConditionMoney() {
                return conditionMoney;
            }

            public void setConditionMoney(int conditionMoney) {
                this.conditionMoney = conditionMoney;
            }

            public String getCouponCategory() {
                return couponCategory;
            }

            public void setCouponCategory(String couponCategory) {
                this.couponCategory = couponCategory;
            }

            public String getUserLimit() {
                return userLimit;
            }

            public void setUserLimit(String userLimit) {
                this.userLimit = userLimit;
            }

            public String getAccountId() {
                return accountId;
            }

            public void setAccountId(String accountId) {
                this.accountId = accountId;
            }

            public String getCreatedTime() {
                return createdTime;
            }

            public void setCreatedTime(String createdTime) {
                this.createdTime = createdTime;
            }

            public String getIsDele() {
                return isDele;
            }

            public void setIsDele(String isDele) {
                this.isDele = isDele;
            }

            public String getUsedDate() {
                return usedDate;
            }

            public void setUsedDate(String usedDate) {
                this.usedDate = usedDate;
            }

            public String getCount() {
                return count;
            }

            public void setCount(String count) {
                this.count = count;
            }

            public String getExchangeTime() {
                return exchangeTime;
            }

            public void setExchangeTime(String exchangeTime) {
                this.exchangeTime = exchangeTime;
            }

            public String getIsExchange() {
                return isExchange;
            }

            public void setIsExchange(String isExchange) {
                this.isExchange = isExchange;
            }

            public String getIsUsed() {
                return isUsed;
            }

            public void setIsUsed(String isUsed) {
                this.isUsed = isUsed;
            }

            @Override
            public String toString() {
                return "CouponEntitiesBean{" +
                        "id=" + id +
                        ", couponId='" + couponId + '\'' +
                        ", couponNo='" + couponNo + '\'' +
                        ", couponCode='" + couponCode + '\'' +
                        ", couponName='" + couponName + '\'' +
                        ", expirDate='" + expirDate + '\'' +
                        ", tagOne=" + tagOne +
                        ", tagTwo=" + tagTwo +
                        ", limitCount=" + limitCount +
                        ", serId=" + serId +
                        ", provider=" + provider +
                        ", serName=" + serName +
                        ", couponMoney=" + couponMoney +
                        ", couponStatus='" + couponStatus + '\'' +
                        ", isSent='" + isSent + '\'' +
                        ", isFailed='" + isFailed + '\'' +
                        ", conditionMoney=" + conditionMoney +
                        ", couponCategory='" + couponCategory + '\'' +
                        ", userLimit=" + userLimit +
                        ", accountId='" + accountId + '\'' +
                        ", createdTime=" + createdTime +
                        ", isDele=" + isDele +
                        ", usedDate=" + usedDate +
                        ", count=" + count +
                        ", exchangeTime=" + exchangeTime +
                        ", isExchange=" + isExchange +
                        ", isUsed=" + isUsed +
                        '}';
            }

            @Override
            public int describeContents() {
                return 0;
            }

            @Override
            public void writeToParcel(Parcel dest, int flags) {
                dest.writeInt(this.id);
                dest.writeString(this.couponId);
                dest.writeString(this.couponNo);
                dest.writeString(this.couponCode);
                dest.writeString(this.couponName);
                dest.writeString(this.expirDate);
                dest.writeString(this.tagOne);
                dest.writeString(this.tagTwo);
                dest.writeInt(this.limitCount);
                dest.writeString(this.serId);
                dest.writeString(this.provider);
                dest.writeString(this.serName);
                dest.writeInt(this.couponMoney);
                dest.writeString(this.couponStatus);
                dest.writeString(this.isSent);
                dest.writeString(this.isFailed);
                dest.writeInt(this.conditionMoney);
                dest.writeString(this.couponCategory);
                dest.writeString(this.userLimit);
                dest.writeString(this.accountId);
                dest.writeString(this.createdTime);
                dest.writeString(this.isDele);
                dest.writeString(this.usedDate);
                dest.writeString(this.count);
                dest.writeString(this.exchangeTime);
                dest.writeString(this.isExchange);
                dest.writeString(this.isUsed);
                dest.writeString(this.area);
                dest.writeString(this.value);
                dest.writeString(this.availableDays);
                dest.writeString(this.businessId);
                dest.writeString(this.businessCategory);
                dest.writeString(this.businessDetailUrl);
            }

            public CouponEntitiesBean() {
            }

            protected CouponEntitiesBean(Parcel in) {
                this.id = in.readInt();
                this.couponId = in.readString();
                this.couponNo = in.readString();
                this.couponCode = in.readString();
                this.couponName = in.readString();
                this.expirDate = in.readString();
                this.tagOne = in.readString();
                this.tagTwo = in.readString();
                this.limitCount = in.readInt();
                this.serId = in.readString();
                this.provider = in.readString();
                this.serName = in.readString();
                this.couponMoney = in.readInt();
                this.couponStatus = in.readString();
                this.isSent = in.readString();
                this.isFailed = in.readString();
                this.conditionMoney = in.readInt();
                this.couponCategory = in.readString();
                this.userLimit = in.readString();
                this.accountId = in.readString();
                this.createdTime = in.readString();
                this.isDele = in.readString();
                this.usedDate = in.readString();
                this.count = in.readString();
                this.exchangeTime = in.readString();
                this.isExchange = in.readString();
                this.isUsed = in.readString();
                this.area = in.readString();
                this.value = in.readString();
                this.availableDays = in.readString();
                this.businessId = in.readString();
                this.businessCategory = in.readString();
                this.businessDetailUrl = in.readString();
            }

            public static final Parcelable.Creator<CouponEntitiesBean> CREATOR = new Parcelable.Creator<CouponEntitiesBean>() {
                @Override
                public CouponEntitiesBean createFromParcel(Parcel source) {
                    return new CouponEntitiesBean(source);
                }

                @Override
                public CouponEntitiesBean[] newArray(int size) {
                    return new CouponEntitiesBean[size];
                }
            };
        }

    }


    //优惠券点击状态类
    public static class GiftClickType {
        public static enum type {
            selected,//选中状态
            normal,//正常状态
            reject;//排斥状态
        }

    }


}
